/**
 * @date 10:34:21 AM
 * EducationTeacherMessage.java
 * Administrator
 * TODO
 */
package com.qs.education.bean.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;

/**
 * @class EducationTeacherMessage	
 * @author Warren
 * @description
 * @date Nov 19, 2018 
 */
@Entity
@Table(name="education_teacher_message")
@Getter
@Setter
public class EducationTeacherMessage {
	@Id
	@Column(name="id" ,unique=true,nullable=false)
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	private String content;
	private Integer messageStatus;
	private Integer sendType;
	private Long applyId;
	
	@ManyToOne
	@JoinColumn(name="teacher_id")
	@JsonIgnoreProperties(value = { "group","school","subject","groups","homeWorks","mobile","password","createTime","teacherToken" })
	private EducationTeacher teacher;
	
	@ManyToOne
	@JoinColumn(name="group_id")
	@JsonIgnoreProperties(value = { "teachers","students","teacher","grade","clazz","homeWorkList" })
	private EducationGroup group;
}
